//
//  UIColor+Custom.h
//  coyote
//
//  Created by LeoHao on 14-8-19.
//  Copyright (c) 2014年 500wan. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIColor (Custom)

/**
 @desc      获取指定大小的纯色图片
 @return    纯色图片
 @authorCreated by LeoHao on 2014-08-19
 */
-(UIImage*)getPureImage:(CGRect)frame;

/**
 @desc      获取圆角纯色图片
 @param  frame   图片大小
 @param  CornerRadius  圆角大小
 @return    圆角纯色图片
 @authorCreated by LeoHao on 2014-08-19
 */
-(UIImage*)getPureImage:(CGRect)frame cornerRadius:(CGFloat)CornerRadius;

/**
 @desc      获取纯色图片
 @return    纯色图片
 @authorCreated by LeoHao on 2014-08-19
 */
-(UIImage*)getPureImage;

/**
 @desc 返回随机颜色
 */
+ (instancetype)rand;

/**
 @desc      通过16进制的颜色（字符串标识的），获取对应的color值
 @author    Created by LeoHao on 2015-5-6
 */
+ (UIColor *)colorWithHexString:(NSString *)stringToConvert;

+ (UIColor *)colorWithHexString:(NSString *)stringToConvert alpha:(CGFloat) alpha;
@end
